<?php
/**
 * @package scuttle
 * @file /include/functions.php
 **/

if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;


// --------------------------------------------------------
// get site thumb image from web service
// not used
// --------------------------------------------------------
function addThumbnailImage($url)
{
	$simpleapi = 'http://images.websnapr.com/?size=T&key=zRwUFH9FCU6I&url=';
//	$simpleapi = 'http://img.simpleapi.net/small/';
//	$simpleapi = 'http://images.websnapr.com/?size=S&key=zRwUFH9FCU6I&url=';
	$str = '';
	$str .= '<a href="'. $url . '"><img src="' . $simpleapi . $url .'" alt="" width="92" height="70" hspace="4" vspace="4" align="left" border="0"></a>';
//	$str .= '<a href="'. $url . '"><img src="' . $simpleapi . $url .'" alt="" width="128" height="128" hspace="4" vspace="4" align="left" border="0"></a>';
//	$str .= '<a href="'. $url . '"><img src="' . $simpleapi . $url .'" alt="" width="220" height="152" hspace="4" vspace="4" align="left" border="0"></a>';

    return $str;
}

// --------------------------------------------------------
// hatena bookmarks count
// --------------------------------------------------------
function addHatenaUsers($url)
{
    $hateb = 'http://b.hatena.ne.jp/entry/';
    $str = '';
    $str .= '<a href="' . $hateb . $url . '"><img src="' . $hateb . 'image/' . $url . '"/></a>'."\n";
    return $str;
}


?>